#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Author: Kang.Cunhua
# @Date:   2015-11-08 15:57:17
# @Last Modified by:   Kang.Cunhua
# @Last Modified time: 2015-11-08 16:00:14
import thread


def f(name):
    # 定义线程函数
    print 'this is: ' + name

if __name__ == '__main__':
    thread.start_new_thread(f, ('thread1',))
    # 用 strat_new_thread() 调用函数和其他参数
    while 1:
        pass
